import { createRouter, createWebHistory } from "vue-router";
export default createRouter({
  history: createWebHistory(),
  routes: [
    {
      path: "/home",
      redirect:'/home/vedio',
      component: () => import("../view/home/index.vue"),
      children:[
        {
          path:'vedio',
          component:() =>import("../view/home/video/index.vue")
        },
        {
          path:'beauty',
          component:()=>import('../view/classiFycation/beauty.vue')
        },
        {
          path:'Comedy',
          component:()=>import('../view/classiFycation/Comedy.vue')
        },
        {
          path:'Fashionable',
          component:()=>import('../view/classiFycation/Fashionable.vue')
        },
        {
          path:'food',
          component:()=>import('../view/classiFycation/food.vue')
        },
        {
          path:'game',
          component:()=>import('../view/classiFycation/game.vue')
        },
        {
          path:'Kawaii',
          component:()=>import('../view/classiFycation/Kawaii.vue')
        },
        {
          path:'Movie',
          component:()=>import('../view/classiFycation/Movie.vue')
        },
        {
          path:'music',
          component:()=>import('../view/classiFycation/music.vue')
        },
        {
          path:'sport',
          component:()=>import('../view/classiFycation/sport.vue')
        }
      ]
    },
    {
      path: "/",
      redirect: "/home/vedio"
    },
    {
      path: "/publicVedio",
      component: () => import("../view/publicVideo/index.vue"),
    },
    {
      path: "/manageVedio",
      component: () => import("../view/manageVideo/index.vue"),
    },
  ],
});
